package com.ruoyi.system.domain;

import com.ruoyi.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 检测单位表 base_detect
 *
 * @author ruoyi
 * @date 2018-12-24
 */
public class Detect extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 检测单位id
     */
    private Integer detectId;
    /**
     * 名称
     */
    private String name;
    /**
     * 状态
     */
    private Integer state;
    /**
     * 折扣
     */
    private BigDecimal discount;
    /**
     * 开始时间
     */
    private Date createDate;

    public void setDetectId(Integer detectId) {
        this.detectId = detectId;
    }

    public Integer getDetectId() {
        return detectId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getState() {
        return state;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("detectId", getDetectId())
                .append("name", getName())
                .append("state", getState())
                .append("discount", getDiscount())
                .append("createDate", getCreateDate())
                .toString();
    }
}
